/**
 * Copyright (c) Daniel Centore
 *
 * ex: set filetype=java expandtab tabstop=4 shiftwidth=4 :
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of
 * the License, or (at your option) any later version.
 *
 * This code is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * This code is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published
 * by the Free Software Foundation.
 */
package ronp.anim.main;

import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import ronp.anim.data.filmstrip.Animation;
import ronp.anim.gui.Gui;

/**
 * Main entrance point for the program
 * 
 * @author Daniel Centore
 *
 */
public class Main
{
	public static final int DEFAULT_FPS = 24;

	public static final int DEFAULT_ANIM_WIDTH = 200;
	public static final int DEFAULT_ANIM_HEIGHT = 350;

	public static void main(String[] args)
	{
		try
		{
			// Set System L&F
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		} catch (UnsupportedLookAndFeelException e)
		{
			// handle exception
		} catch (ClassNotFoundException e)
		{
			// handle exception
		} catch (InstantiationException e)
		{
			// handle exception
		} catch (IllegalAccessException e)
		{
			// handle exception
		}

		Animation anim = new Animation(DEFAULT_ANIM_WIDTH, DEFAULT_ANIM_HEIGHT, DEFAULT_FPS);
		new Gui(anim);
	}

}
